<template>
    <div class="home">
      <router-view></router-view>
      <van-tabbar active-color="#e40137" inactive-color="#b4b4bd" route placeholder v-if="$route.meta.needTab">
        <van-tabbar-item to="/home/company">
          <template #default>
            <div>公司</div>
          </template>
          <template #icon>
            <i class="iconfont">&#xe63b;</i>
          </template>
        </van-tabbar-item>
        <van-tabbar-item to="/home/question">
          <template #default>
            <div>刷题</div>
          </template>
          <template #icon>
            <i class="iconfont">&#xe63f;</i>
          </template>
        </van-tabbar-item>
        <van-tabbar-item to="/home/find">
          <template #default>
            <div>发现</div>
          </template>
          <template #icon>
            <i class="iconfont">&#xe646;</i>
          </template>
        </van-tabbar-item>
        <van-tabbar-item to="/home/my">
          <template #default>
            <div>我的</div>
          </template>
          <template #icon>
            <i class="iconfont">&#xe645;</i>
          </template>
        </van-tabbar-item>
      </van-tabbar>
    </div>
</template>

<script>
export default {
  name: 'home'
}
</script>

<style lang="less" scoped>
  .home {
    /*height: 60px;*/
    .iconfont{
      font-size: 28px;
    }
  }
</style>
